<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ page import="java.text.SimpleDateFormat"%>
<%@ page import="java.util.Calendar"%>
<%@ page import="edu.sysu.cshare.model.SubmitInfo"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title><s:text name="title.systemSetting" /></title>
<script type="text/javascript" src="js/ajax.js">
	
</script>
    <link href="css/960.css" rel="stylesheet" type="text/css" />
    <link href="css/area.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" href="area.css" />
<style type="text/css">
    .style1
    {
        height: 45px;
        width: 224px;
    }
    .style2
    {
        width: 68px;
    }
    .style3
    {
        height: 45px;
        width: 68px;
    }
    .style4
    {
        width: 297px;
        height: 180px;
    }
    .style5
    {
        width: 224px;
    }
</style>
</head>
<body>
   <div id="container" class="container_12">
   <div id="head" class="grid_12">
     <center><font color="red" size="25px">CShare作业提交系统</font></center>
     <div id="logo" class="grid_3"></div>
     <div id="logoright" class="grid_8">
     </div>
     <div class="clear"></div>
   </div><!--end of head-->
   <div id=content class="grid_12">
	   <jsp:include page="top.jsp" flush="true" />
	<table>
		<tr>
			<td><s:text name="label.personalInfo" />
			</td>
		</tr>
		<tr>
			<td><s:text name="label.ID" /> ${user.id}</td>
			<td><s:text name="label.name" /> ${user.name}</td>
			<td><s:text name="label.class" /> ${user.clazz.name}</td>
			<td>
				<form action="system!viewPersonal" method="post">
					<s:submit key="label.modify" />
					<s:hidden name="userId" />
				</form></td>
		</tr>
	</table>
	<s:text name="label.courseInfo" />
	<table border="1">
		<tr>
			<th><s:text name="label.isSelected" />
			</th>
			<th><s:text name="label.courseName" />
			</th>
			<th><s:text name="label.teacher" />
			</th>
			<th><s:text name="label.courseType" />
			</th>
			<th><s:text name="label.point" />
			</th>
			<th><s:text name="label.selectedNum" />
			</th>
		</tr>
		<s:iterator value="courses" id="course">
			<tr>
				<td><s:if test="selectedCourses.contains(#course.id)">
						<form action="system!disSelect" method="post">
							<s:submit key="label.disSelect" />
							<s:hidden name="userId" />
							<s:hidden name="courseId" value="%{#course.id}" />
						</form>
					</s:if> <s:else>
						<form action="system!select" method="post">
							<s:submit key="label.select" />
							<s:hidden name="userId" />
							<s:hidden name="courseId" value="%{#course.id}" />
						</form>
					</s:else>
				</td>
				<td><s:property value="name" /></td>
				<td><s:property value="teacher.name" />
				</td>
				<td><s:property value="type" /></td>
				<td><s:property value="points" />
				</td>
				<td><s:property value="students.size" /></td>
			</tr>
		</s:iterator>
	</table>
   </div><!--content-->	
  </div>
</body>
</html>